package com.itheima.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "sky.wechat")

public class WeChatProperties {

    private String appid; //小程序的appid
    private String secret; //小程序的秘钥
    private String mchid; //商户号


    public WeChatProperties() {
    }

    public WeChatProperties(String appid, String secret, String mchid) {
        this.appid = appid;
        this.secret = secret;
        this.mchid = mchid;
    }

    /**
     * 获取
     * @return appid
     */
    public String getAppid() {
        return appid;
    }

    /**
     * 设置
     * @param appid
     */
    public void setAppid(String appid) {
        this.appid = appid;
    }

    /**
     * 获取
     * @return secret
     */
    public String getSecret() {
        return secret;
    }

    /**
     * 设置
     * @param secret
     */
    public void setSecret(String secret) {
        this.secret = secret;
    }

    /**
     * 获取
     * @return mchid
     */
    public String getMchid() {
        return mchid;
    }

    /**
     * 设置
     * @param mchid
     */
    public void setMchid(String mchid) {
        this.mchid = mchid;
    }

    public String toString() {
        return "WeChatProperties{appid = " + appid + ", secret = " + secret + ", mchid = " + mchid + "}";
    }
}
